import service from "@/utils/request";
import { hybridizationquery } from "./model";
// import { hybridizationAdd } from "./model";
const DEPT_BASE_URL = "/api/";

//显示种母配种数据表
class hybridization{
static getList(queryParams?: hybridizationquery) {
    return service<any, hybridizationquery>({
      url: `${DEPT_BASE_URL}BreedingInfo/GetBreedingInfo`,
      method: "get",
      params: queryParams,
    });
}
  // //添加种母配种记录表
   static addhybridization(data?:any[]) { return service({ url: `${DEPT_BASE_URL}BreedingInfo/AddBreedingInfo`, method: "post", data }); }
  // // //删除种母配种记录表
    static deleteHybridization (id: number) { return service({ url: `${DEPT_BASE_URL}BreedingInfo/DeleteBreedingInfo`, method: "delete", data: { breedId: id } }); }
  // // //批量删除
   static deleteBatchHybridization(ids: number[]) { return service({ url: `${DEPT_BASE_URL}BreedingInfo/DeleteRangeBreedingInfo`, method: "put", data: { breedIds: ids } }); }
  // //反填种母配种记录表
  // static getByIdHistory(earTag:string) { return service({ url: `${DEPT_BASE_URL}History/GetHistoryById`, method: "get", params: { earTag: earTag } }); }
  
  
  // //修改种母配种记录表
  // static updateStart(startdata?: startAdd) { return service({ url: `${DEPT_BASE_URL}Start/UpdateStart`, method: "put", data: startdata }); }
  


  
}
export default hybridization;